package dao.impl;

import java.sql.SQLException;
import java.util.List;

import com.ibatis.sqlmap.client.SqlMapClient;

import module.BasicBanKuai;
import dao.ABSBasicDAO;
import domain.vo.queryObject;

/**
 * 
* @ClassName: BanKuaiDAOImpl
* @Description:系统数据板块
* @author chenchao
* @date 2013-10-30 上午02:39:07
*
 */
public class BanKuaiDAOImpl extends ABSBasicDAO<BasicBanKuai>{
	/**
	 * 构造方法
	 * @param sqlMapClient
	 */
	public BanKuaiDAOImpl(SqlMapClient sqlMapClient) {
		super(sqlMapClient);
	}
	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getAll()
	 */
	@Override
	public List<BasicBanKuai> getAll() throws SQLException {
		return  sqlMapClient.queryForList("BasicBanKuai.getAll");
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getById(java.lang.String)
	 */
	@Override
	public BasicBanKuai getById(String id) throws SQLException {
		return  (BasicBanKuai)sqlMapClient.queryForObject("BasicBanKuai.getById",id);
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getByPK()
	 */
	@Override
	public BasicBanKuai getByPK() {
		// TODO Auto-generated method stub
		return null;
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#insertT(java.lang.Object)
	 */
	@Override
	public void insertT(BasicBanKuai t) throws SQLException {

		sqlMapClient.insert("BasicBanKuai.insertBasicBankuaiInfo", t);
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#updateT(java.lang.Object)
	 */
	@Override
	public void updateT(BasicBanKuai t) throws SQLException {
		sqlMapClient.update("BasicBanKuai.updateBasicBankuaiInfo", t);
	}
	
	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getObjectByQueryObject(domain.vo.queryObject)
	 */
	@Override
	public List<BasicBanKuai> getObjectByQueryObject(queryObject queryObject)
			throws SQLException {
		return sqlMapClient.queryForList("BasicBanKuai.getObjectByQueryObject", queryObject);
	}

}
